package MTT::Schema::Result::ObjectType;

# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE

use strict;
use warnings;

use Moose;
use MooseX::NonMoose;
use namespace::autoclean;
extends 'DBIx::Class::Core';

__PACKAGE__->load_components("InflateColumn::DateTime", "EncodedColumn");

=head1 NAME

MTT::Schema::Result::ObjectType

=cut

__PACKAGE__->table("object_type");

=head1 ACCESSORS

=head2 id

  data_type: 'integer'
  is_auto_increment: 1
  is_nullable: 0

=head2 name

  data_type: 'varchar'
  is_nullable: 0
  size: 23

=head2 descr

  data_type: 'varchar'
  is_nullable: 1
  size: 42

=cut

__PACKAGE__->add_columns(
  "id",
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
  "name",
  { data_type => "varchar", is_nullable => 0, size => 23 },
  "descr",
  { data_type => "varchar", is_nullable => 1, size => 42 },
);
__PACKAGE__->set_primary_key("id");

=head1 RELATIONS

=head2 access_objects

Type: has_many

Related object: L<MTT::Schema::Result::AccessObject>

=cut

__PACKAGE__->has_many(
  "access_objects",
  "MTT::Schema::Result::AccessObject",
  { "foreign.object_type" => "self.id" },
  { cascade_copy => 0, cascade_delete => 0 },
);


# Created by DBIx::Class::Schema::Loader v0.07002 @ 2011-01-23 22:33:08
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:6bKoDLiNrMmVCIyqnBHzcg


# You can replace this text with custom content, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;
